import {carousel} from "@/api/carouselapi.js";
// import {being} from "@/api/beingapi.js";
export let carouselstore={
    module:{

    },
    state:{
        arr:[]
    },
    getters:{

    },
    mutations:{
        getcarousel(state,payload){
            state.arr=payload
            // console.log(state.arr)
        },
        
    },
    actions:{
        sends(store){
            carousel("/api/xiaomipro/goods/carousel2").then((ok)=>{  
                store.commit("getcarousel",ok.data.carousel)
                // console.log(ok)
            })
        }
      
    },
}